package hibernate

class Mouth {
    static belongsTo = [robot: Robot] //支持级联删除

    String name

    static mapping = {
        table "mouth"

        id column:"ID"
        version column:"VERSION"

        name column:"NAME"

        robot column:"ROBOT_ID"
    }

    static constraints = {
    }
}
